<?php /*a:4:{s:121:"E:/project/chaoshang/dianshu/application/admin/view/default/..\..\..\plugins\view\expressforkdn\index\public\content.html";i:1568885126;s:78:"E:/project/chaoshang/dianshu/application/admin/view/default/goods\examine.html";i:1575103695;s:78:"E:/project/chaoshang/dianshu/application/admin/view/default/public\header.html";i:1568774833;s:78:"E:/project/chaoshang/dianshu/application/admin/view/default/public\footer.html";i:1572600795;}*/ ?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="<?php echo config('shopxo.default_charset', 'utf-8'); ?>" />
	<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1, maximum-scale=1" />
	<title>ShopXO后台管理系统</title>
	<link rel="stylesheet" type="text/css" href="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/assets/css/amazeui.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/amazeui-switch/amazeui.switch.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/amazeui-chosen/amazeui.chosen.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/amazeui-tagsinput/amazeui.tagsinput.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/css/common.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/admin/<?php echo htmlentities($default_theme); ?>/css/common.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/admin/<?php echo htmlentities($default_theme); ?>/css/iconfontmenu.css" />
    <?php if(!empty($plugins_css)): ?>
        <link rel="stylesheet" type="text/css" href="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/<?php echo htmlentities($plugins_css); ?>" />
    <?php endif; if(!empty($module_css)): ?>
		<link rel="stylesheet" type="text/css" href="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/<?php echo htmlentities($module_css); ?>" />
	<?php endif; ?>

	<!-- css钩子 -->
    <?php if(!empty($plugins_admin_css_data) and is_array($plugins_admin_css_data)): foreach($plugins_admin_css_data as $hook): if(is_string($hook)): ?>
                <link rel="stylesheet" type="text/css" href="<?php echo htmlentities($hook); ?>?v=<?php echo MyC('home_static_cache_version'); ?>" />
            <?php elseif(is_array($hook)): foreach($hook as $hook_css): if(is_string($hook_css)): ?>
                        <link rel="stylesheet" type="text/css" href="<?php echo htmlentities($hook_css); ?>?v=<?php echo MyC('home_static_cache_version'); ?>" />
                    <?php endif; ?>
                <?php endforeach; ?>
            <?php endif; ?>
        <?php endforeach; ?>
    <?php endif; ?>

    <!-- 公共header内钩子 -->
	<?php if(!empty($plugins_admin_common_header_data) and is_array($plugins_admin_common_header_data)): foreach($plugins_admin_common_header_data as $hook): if(is_string($hook) or is_int($hook)): ?>
				<?php echo $hook; ?>
			<?php endif; ?>
		<?php endforeach; ?>
	<?php endif; ?>
</head>
<script type="text/javascript">
	var __attachment_host__ = '<?php echo htmlentities($attachment_host); ?>';
</script>
<body>
<!-- 公共顶部钩子 -->
<?php if(!empty($plugins_admin_view_common_top_data) and is_array($plugins_admin_view_common_top_data) and (!isset($is_header) or $is_header == 1)): foreach($plugins_admin_view_common_top_data as $hook): if(is_string($hook) or is_int($hook)): ?>
			<?php echo $hook; ?>
		<?php endif; ?>
	<?php endforeach; ?>
<?php endif; ?>
<style>
    *{ margin:0; padding:0; list-style:none; text-decoration:none;}

    .wraper{ width:100%; padding-bottom:20px }
    .nav{ position:relative; width:100%; height:40px; background:#eee; overflow:hidden}
    .nav-item{ position:relative; float:left; width:160px; height:40px; line-height:40px; text-align:center; font-size:14px; z-index:1}
    .nav-item a{ display:block; height:40px; color:#111;}
    .nav-item a:hover{ color:#fff}
    .move-bg{ display:none;position:absolute;left:0;top:0; width:160px; height:40px; background:#4386fb; z-index:0}
    .bg a{background:#4386fb;color:#fff;}
</style>

<!-- right content start  -->
<div class="content-right">
    <div class="content">
        <!-- form start -->
        <form class="am-form form-validation form-search" method="post" action="<?php echo MyUrl('admin/goods/examine'); ?>" request-type="form">
            <div class="thin">
                <div class="am-input-group am-input-group-sm am-fl so">
                    <input type="text" autocomplete="off" name="keywords" class="am-radius" placeholder="标题" value="<?php if(!empty($params['keywords'])): ?><?php echo htmlentities($params['keywords']); ?><?php endif; ?>" />
                    <span class="am-input-group-btn">
                        <button class="am-btn am-btn-default am-radius" type="submit" data-am-loading="{spinner:'circle-o-notch', loadingText:'搜索中...'}">搜索</button>
                    </span>
                </div>
                <label class="am-fl thin_sub more-submit">
                    更多筛选条件
                    <?php if(isset($params['is_more']) and $params['is_more'] == 1): ?>
                    <input type="checkbox" name="is_more" value="1" id="is_more" checked />
                    <i class="am-icon-angle-up"></i>
                    <?php else: ?>
                    <input type="checkbox" name="is_more" value="1" id="is_more" />
                    <i class="am-icon-angle-down"></i>
                    <?php endif; ?>
                </label>
            </div>
            <table class="so-list more-where <?php if(!isset($params['is_more'])): ?>none<?php endif; ?>">
                <tbody>
                    <tr>
                        <td>
                            <span>分类：</span>
                            <select class="am-radius chosen-select" name="category_id" data-placeholder="商品分类...">
                                <option value="0">商品分类...</option>
                                <?php if(!empty($goods_category_list)): foreach($goods_category_list as $v): ?>
                                <option value="<?php echo htmlentities($v['id']); ?>" <?php if(!empty($params['category_id']) and $v['id'] == $params['category_id']): ?>selected<?php endif; ?>>一级 - <?php echo htmlentities($v['name']); ?></option>
                                <?php if(!empty($v['items'])): foreach($v['items'] as $vs): ?>
                                <option style="padding-left: 30px;" value="<?php echo htmlentities($vs['id']); ?>" <?php if(!empty($params['category_id']) and $vs['id'] == $params['category_id']): ?>selected<?php endif; ?>>二级 - <?php echo htmlentities($vs['name']); ?></option>
                                <?php if(!empty($vs['items'])): foreach($vs['items'] as $vss): ?>
                                <option style="padding-left: 60px;" value="<?php echo htmlentities($vss['id']); ?>" <?php if(!empty($params['category_id']) and $vss['id'] == $params['category_id']): ?>selected<?php endif; ?>>三级 - <?php echo htmlentities($vss['name']); ?></option>
                                <?php endforeach; ?>
                                <?php endif; ?>
                                <?php endforeach; ?>
                                <?php endif; ?>
                                <?php endforeach; ?>
                                <?php endif; ?>
                            </select>
                        </td>
                        <td>
                            <span>作者：</span>
                            <input type="text"  style="width:217px"    name="author" value="<?php if(!empty($params['author'])): ?><?php echo htmlentities($params['author']); ?><?php endif; ?>"  />
                        </td>

                    </tr>
                    <tr>

                        <td>
                            <span>货架号：</span>
                            <input type="text"  style="width:217px" name="shelf_number"  value="<?php if(!empty($params['shelf_number'])): ?><?php echo htmlentities($params['shelf_number']); ?><?php endif; ?>" />
                        </td>
                        <td>
                            <span>品相：</span>
                            <input type="text"  style="width:217px"    name="quality" />
                        </td>
                    </tr>
                    <tr>

                        <td>
                            <span>售价：</span>
                            <input type="text"  style="width:100px" name="price" value="<?php if(!empty($params['price'])): ?><?php echo htmlentities($params['price']); ?><?php endif; ?>" />—
                            <input type="text"  style="width:100px" name="price1" value="<?php if(!empty($params['price1'])): ?><?php echo htmlentities($params['price1']); ?><?php endif; ?>" />
                        </td>
                        <td>
                            <span>isbn：</span>
                            <input type="text"  style="width:217px"    name="isbn"  value="<?php if(!empty($params['isbn'])): ?><?php echo htmlentities($params['isbn']); ?><?php endif; ?>"/>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span>状态：</span>
                            <select name="is_shelves" class="chosen-select" data-placeholder="上下架...">
                                <option value="-1">上下架...</option>
                                <?php foreach($common_is_shelves_list as $v): ?>
                                <option value="<?php echo htmlentities($v['id']); ?>" <?php if(isset($params['is_shelves']) and $params['is_shelves'] == $v['id']): ?>selected<?php endif; ?>><?php echo htmlentities($v['name']); ?></option>
                                <?php endforeach; ?>
                            </select>
                        </td>
                        <td>
                            <span>推荐：</span>
                            <select name="is_home_recommended" class="chosen-select" data-placeholder="首页推荐...">
                                <option value="-1">首页推荐...</option>
                                <?php foreach($common_is_text_list as $v): ?>
                                <option value="<?php echo htmlentities($v['id']); ?>" <?php if(isset($params['is_home_recommended']) and $params['is_home_recommended'] == $v['id']): ?>selected<?php endif; ?>><?php echo htmlentities($v['name']); ?></option>
                                <?php endforeach; ?>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td class="time">
                            <span>时间：</span>
                            <span>
                                <input type="text" autocomplete="off" name="time_start" class="am-form-field am-input-sm am-radius Wdate" placeholder="起始时间" value="<?php if(!empty($params['time_start'])): ?><?php echo htmlentities($params['time_start']); ?><?php endif; ?>" data-validation-message="日期格式有误" onclick="WdatePicker({firstDayOfWeek: 1, dateFmt: 'yyyy-MM-dd'})" autocomplete="off" /><i class="am-icon-calendar"></i>
                            </span>
                            <em class="text-grey">~</em>
                            <span>
                                <input type="text" autocomplete="off" name="time_end" class="am-form-field am-input-sm am-radius Wdate" placeholder="结束时间" value="<?php if(!empty($params['time_end'])): ?><?php echo htmlentities($params['time_end']); ?><?php endif; ?>" pattern="^[0-9]{4}-[0-9]{2}-[0-9]{2}$" data-validation-message="日期格式有误" onclick="WdatePicker({firstDayOfWeek: 1, dateFmt: 'yyyy-MM-dd'})" autocomplete="off" /><i class="am-icon-calendar"></i>
                            </span>
                        </td>
                        <td>
                            <button type="submit" class="am-btn am-btn-primary am-radius am-btn-xs btn-loading-example" data-am-loading="{spinner:'circle-o-notch', loadingText:'搜索中...'}">搜索</button>
                            <a href="<?php echo MyUrl('admin/goods/index'); ?>" class="am-btn am-btn-warning am-radius am-btn-sm reset-submit">清除条件</a>
                        </td>
                    </tr>
                </tbody>
            </table>
        </form>
        <!-- form end -->
   <div class="am-g m-t-15">
            <a href="javascript:void();" id="remind" class="am-btn am-btn-secondary am-radius am-btn-xs am-icon-plus"> 批量通过</a>
        </div>
        <!-- operation start -->

        <div class="am-g m-t-15">
            <div class="wraper">
                <div class="nav">
                    <ul>
                        <li class="nav-item <?php if(isset($params['status'])  and  $params['status'] == 0): ?>bg<?php endif; ?>" ><a href='<?php echo MyUrl('admin/goods/examine',['status'=>0]); ?>'>待审核</a></li>
                        <li class="nav-item <?php if(!empty($params['status'])  and  $params['status'] == 2): ?>bg<?php endif; ?>"><a href='<?php echo MyUrl('admin/goods/examine',['status'=>2]); ?>'>未通过</a></li>
                        <li class="nav-item <?php if(!empty($params['status'])  and  $params['status'] == 1): ?>bg<?php endif; ?>"><a href='<?php echo MyUrl('admin/goods/examine',['status'=>1]); ?>'>已通过</a></li>

                    </ul>
                    <!--移动的滑动-->
                    <div class="move-bg"></div>
                    <!--移动的滑动 end-->
                </div>
            </div>
        </div>
        <!-- operation end -->

        <!-- list start -->
        <table class="am-table am-table-striped am-table-hover am-text-middle m-t-10 goods-list">
            <thead>
                <tr>
                      <th><input type="checkbox" id="CheckAll">&nbsp;全选</th>
                    <th>编号</th>
                    <th>标题名称</th>
                    <th class="am-hide-sm-only">销售价格(元)</th>
                    <th>上下架</th>
                    <th class="am-hide-sm-only">标签</th>
                    <th class="am-hide-sm-only">库存数量</th>
                    <th class="am-hide-sm-only">货架号</th>


                    <th class="am-hide-sm-only">仓库</th>
                    <th class="am-hide-sm-only">操作员</th>
                     <th class="am-hide-sm-only">审核状态</th>
                    <th>更多</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                <?php if(!empty($data_list)): foreach($data_list as $v): ?>
                <tr id="data-list-<?php echo htmlentities($v['id']); ?>" <?php if($v['is_shelves'] == 0): ?>class="am-active"<?php endif; ?>>
                    <td><input type="checkbox" class="dh" name='ids[]' value="<?php echo htmlentities($v['id']); ?>" ></td>
                    <td><?php echo htmlentities($v['id']); ?></td>
                    <td>
                        <a href="<?php echo htmlentities($v['goods_url']); ?>" target="_blank" title="<?php echo htmlentities($v['title']); ?>">
                            <img src="<?php echo htmlentities($v['images']); ?>" class="am-img-thumbnail am-radius goods-images am-hide-sm-only" />
                        </a>
                        <a href="<?php echo htmlentities($v['goods_url']); ?>" target="_blank" title="<?php echo htmlentities($v['title']); ?>" <?php if(!empty($v['title_color'])): ?> style="color:<?php echo htmlentities($v['title_color']); ?>;" <?php endif; ?> ><?php echo htmlentities($v['title']); ?></a>
                        <?php if(!empty($v['simple_desc'])): ?>
                        <p class="cr-red am-hide-md-down"><?php echo htmlentities($v['simple_desc']); ?></p>
                        <?php endif; ?>
                    </td>
                    <td class="am-hide-sm-only">
                        <?php echo htmlentities($v['price']); if(!empty($v['original_price']) and $v['original_price'] > 0): ?>
                        <br /><span class="am-badge am-radius">原价 <?php echo htmlentities($v['original_price']); ?></span>
                        <?php endif; ?>
                    </td>
                    <td>
                        <a href="javascript:;" class="am-icon-btn am-icon-check submit-state <?php if($v['is_shelves'] == 1): ?>am-success<?php else: ?>am-default<?php endif; ?>" data-url="<?php echo MyUrl('admin/goods/statusshelves'); ?>" data-id="<?php echo htmlentities($v['id']); ?>" data-state="<?php echo htmlentities($v['is_shelves']); ?>"  data-is-update-status="1"></a>
                    </td>
                    <td class="am-hide-sm-only">
                        <a href="javascript:;" class="am-icon-btn am-icon-check submit-state <?php if($v['is_home_recommended'] == 1): ?>am-success<?php else: ?>am-default<?php endif; ?>" data-url="<?php echo MyUrl('admin/goods/statushomerecommended'); ?>" data-id="<?php echo htmlentities($v['id']); ?>" data-state="<?php echo htmlentities($v['is_home_recommended']); ?>" data-is-update-status="0"></a>首页推荐<br/>
                        <a href="javascript:;" class="am-icon-btn am-icon-check submit-state <?php if($v['new_upper'] == 1): ?>am-success<?php else: ?>am-default<?php endif; ?>" data-url="<?php echo MyUrl('admin/goods/StatusNewUpper'); ?>" data-id="<?php echo htmlentities($v['id']); ?>" data-state="<?php echo htmlentities($v['new_upper']); ?>" data-is-update-status="0"></a>最新上架<br/>
                        <a href="javascript:;" class="am-icon-btn am-icon-check submit-state <?php if($v['recommended_daily'] == 1): ?>am-success<?php else: ?>am-default<?php endif; ?>" data-url="<?php echo MyUrl('admin/goods/StatusRecommendedDaily'); ?>" data-id="<?php echo htmlentities($v['id']); ?>" data-state="<?php echo htmlentities($v['recommended_daily']); ?>" data-is-update-status="0"></a>每日推荐<br/>
                        <a href="javascript:;" class="am-icon-btn am-icon-check submit-state <?php if($v['rare_treasures'] == 1): ?>am-success<?php else: ?>am-default<?php endif; ?>" data-url="<?php echo MyUrl('admin/goods/StatusRareTreasures'); ?>" data-id="<?php echo htmlentities($v['id']); ?>" data-state="<?php echo htmlentities($v['rare_treasures']); ?>" data-is-update-status="0"></a>珍品孤本
                    </td>
                    <td class="am-hide-sm-only"><?php echo htmlentities($v['inventory']); ?> </td>

                    <td class="am-hide-sm-only"><?php echo htmlentities($v['shelf_number']); ?></td>
                    <td class="am-hide-sm-only"><?php echo htmlentities($v['warehouse_name']); ?></td>
                    <td class="am-hide-sm-only"><?php echo htmlentities($v['username']); ?></td>
                    <td class="am-hide-sm-only">
                          <?php if($v['status'] == 0): ?>
                            未审核
                           <?php elseif($v['status'] == 1): ?>
                              已通过
                                 <?php elseif($v['status'] == 2): ?>
                                已驳回
                            <?php endif; ?>
                    </td>
                    <td>
                        <span class="am-icon-caret-down c-p" data-am-modal="{target: '#my-popup<?php echo htmlentities($v['id']); ?>'}"> 查看更多</span>
                        <div class="am-popup am-radius" id="my-popup<?php echo htmlentities($v['id']); ?>">
                            <div class="am-popup-inner">
                                <div class="am-popup-hd">
                                    <h4 class="am-popup-title">详情内容</h4>
                                    <span data-am-modal-close
                                          class="am-close">&times;</span>
                                </div>
                                <div class="am-popup-bd">
                                    <dl class="dl-content">
                                        <dt>标题名称</dt>
                                        <dd><?php echo htmlentities($v['title']); ?></dd>

                                        <dt>商品简述</dt>
                                        <dd><?php echo htmlentities($v['simple_desc']); ?></dd>

                                        <dt>销售价格(元)</dt>
                                        <dd>
                                            <?php echo htmlentities($v['price']); if(!empty($v['original_price']) and $v['original_price'] > 0): ?>
                                            <br /><span class="am-badge am-radius">原价 <?php echo htmlentities($v['original_price']); ?></span>
                                            <?php endif; ?>
                                        </dd>

                                        <dt>上下架</dt>
                                        <dd><?php echo lang('common_is_shelves_list')[$v['is_shelves']]['name']; ?></dd>

                                        <dt>库存数量</dt>
                                        <dd><?php echo htmlentities($v['inventory']); ?> </dd>

                                        <dt>品相</dt>
                                        <dd><?php echo htmlentities($v['quality']); ?></dd>

                                        <dt>isbn</dt>
                                        <dd><?php echo htmlentities($v['isbn']); ?></dd>

                                        <dt>商品分类</dt>
                                        <dd><?php echo htmlentities($v['category_text']); ?></dd>

                                        <dt>购买赠送积分</dt>
                                        <dd><?php echo htmlentities($v['give_integral']); ?></dd>

                                        <dt>扣减库存</dt>
                                        <dd><?php echo lang('common_is_text_list')[$v['is_deduction_inventory']]['name']; ?></dd>

                                        <dt>访问次数</dt>
                                        <dd><?php echo htmlentities($v['access_count']); ?></dd>

                                        <dt>SEO标题</dt>
                                        <dd><?php echo htmlentities($v['seo_title']); ?></dd>

                                        <dt>SEO关键字</dt>
                                        <dd><?php echo htmlentities($v['seo_keywords']); ?></dd>

                                        <dt>SEO描述</dt>
                                        <dd><?php echo htmlentities($v['seo_desc']); ?></dd>

                                        <dt>创建时间</dt>
                                        <dd><?php echo htmlentities($v['add_time']); ?></dd>

                                        <dt>更新时间</dt>
                                        <dd><?php echo htmlentities($v['upd_time']); ?></dd>
                                    </dl>
                                </div>
                            </div>
                        </div>
                    </td>
                    <td class="view-operation">
                         <?php if($v['status'] == 0): ?>
                                 <button class="am-btn am-btn-warning am-btn-xs am-radius am-icon-remove submit-ajax" data-url="<?php echo MyUrl('admin/Goods/statusUpdate'); ?>" data-value="1"  data-id="<?php echo htmlentities($v['id']); ?>" data-view="reload"    data-msg="审核确认通过吗？"> 通过</button>
                     
                                 <button class="am-btn am-btn-warning am-btn-xs am-radius am-icon-remove submit-ajax" data-url="<?php echo MyUrl('admin/Goods/statusUpdate'); ?>" data-value="2"  data-id="<?php echo htmlentities($v['id']); ?>"  data-view="reload"   data-msg="审核确认驳回吗？"> 驳回</button>
                       <?php elseif($v['status'] == 1): ?>
                                已通过
                            <?php elseif($v['status'] == 2): ?>
                                已驳回 
                      <?php endif; ?>
                        <!-- 商品列表操作钩子 -->
                        <?php if(isset($shopxo_is_develop) and $shopxo_is_develop == true and (!isset($is_footer) or $is_footer == 1)): ?>
                        <div class="plugins-tag">
                            <span>plugins_view_admin_goods_list_operation</span>
                        </div>
                        <?php endif; 
                        $hook_name = 'plugins_view_admin_goods_list_operation';
                        $hook_data = Hook::listen($hook_name, ['hook_name'=>$hook_name, 'is_backend'=>true, 'id'=>$v['id'], 'data'=>$v]);
                        if(!empty($hook_data) && is_array($hook_data))
                        {
                        foreach($hook_data as $hook)
                        {
                        if(is_string($hook) || is_int($hook))
                        {
                        echo htmlspecialchars_decode($hook);
                        }
                        }
                        }
                         ?>
                    </td>
                </tr>
                <?php endforeach; ?>
                <?php endif; ?>
            </tbody>
        </table>
        <?php if(empty($data_list)): ?>
        <div class="table-no"><i class="am-icon-warning"></i> 没有相关数据</div>
        <?php endif; ?>
        <!-- list end -->

        <!-- page start -->
        <?php if(!empty($data_list)): ?>
        <?php echo $page_html; ?>
        <?php endif; ?>
        <!-- page end -->
    </div>
</div>
<!-- right content end  -->

<!-- footer start -->
<!-- commom html -->
<textarea id="upload-editor-view" data-url="<?php echo MyUrl('admin/ueditor/index', ['path_type'=>empty($editor_path_type) ? 'common' : $editor_path_type]); ?>" style="display: none;"></textarea>

<!-- 公共底部钩子 -->
<?php if(!empty($plugins_admin_view_common_bottom_data) and is_array($plugins_admin_view_common_bottom_data) and (!isset($is_footer) or $is_footer == 1)): foreach($plugins_admin_view_common_bottom_data as $hook): if(is_string($hook) or is_int($hook)): ?>
            <?php echo $hook; ?>
        <?php endif; ?>
    <?php endforeach; ?>
<?php endif; ?>

</body>
</html>

<!-- 类库 -->
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/jquery/jquery-2.1.0.js"></script>
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/assets/js/amazeui.min.js"></script>

<!-- echarts 图表 -->
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/echarts/echarts.min.js"></script>
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/echarts/macarons.js"></script>

<!-- ueditor 编辑器 -->
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/ueditor/ueditor.config.js"></script>
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/ueditor/ueditor.all.js"></script>
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/ueditor/lang/zh-cn/zh-cn.js"></script>

<!-- 颜色选择器 -->
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/colorpicker/jquery.colorpicker.js"></script>

<!-- 元素拖拽排序插件 -->
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/dragsort/jquery.dragsort-0.5.2.min.js"></script>

<!-- 动画数数 -->
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/animation-count-to/animation.count.to.js"></script>

<!-- amazeui插件 -->
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/amazeui-switch/amazeui.switch.min.js"></script>
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/amazeui-chosen/amazeui.chosen.min.js"></script>
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/amazeui-dialog/amazeui.dialog.min.js"></script>
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/amazeui-tagsinput/amazeui.tagsinput.min.js"></script>

<!-- 日期组件 -->
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/My97DatePicker/WdatePicker.js"></script>

<!-- 元素拖动 -->
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/tdrag/tdrag.min.js"></script>

<!-- 隐藏编辑器初始化 -->
<script type="text/javascript">
    var upload_editor = UE.getEditor("upload-editor-view", {
        isShow: false,
        focus: false,
        enableAutoSave: false,
        autoSyncData: false,
        autoFloatEnabled:false,
        wordCount: false,
        sourceEditor: null,
        scaleEnabled:true,
        toolbars: [["insertimage", "insertvideo", "attachment"]]
    });
</script>

<!-- 项目公共 -->
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/js/common.js"></script>

<!-- 应用插件公共js -->
<?php if(!empty($plugins_js)): ?>
    <script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/<?php echo htmlentities($plugins_js); ?>"></script>
<?php endif; ?>

<!-- 当前控制器js -->
<?php if(!empty($module_js)): ?>
    <script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/<?php echo htmlentities($module_js); ?>"></script>
<?php endif; ?>

<!-- js钩子 -->
<?php if(!empty($plugins_admin_js_data) and is_array($plugins_admin_js_data)): foreach($plugins_admin_js_data as $hook): if(is_string($hook)): ?>
            <script type='text/javascript' src="<?php echo htmlentities($hook); ?>"></script>
        <?php elseif(is_array($hook)): foreach($hook as $hook_js): if(is_string($hook_js)): ?>
                    <script type='text/javascript' src="<?php echo htmlentities($hook_js); ?>"></script>
                <?php endif; ?>
            <?php endforeach; ?>
        <?php endif; ?>
    <?php endforeach; ?>
<?php endif; ?>

<!-- 公共页面底部钩子 -->
<?php if(!empty($plugins_admin_common_page_bottom_data) and is_array($plugins_admin_common_page_bottom_data)): foreach($plugins_admin_common_page_bottom_data as $hook): if(is_string($hook) or is_int($hook)): ?>
            <?php echo $hook; ?>
        <?php endif; ?>
    <?php endforeach; ?>
<?php endif; ?>
<!-- footer end -->

<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/admin/default/js/jquery.movebg.js""></script>
<script>
                                    $(function () {
                                        $(".nav").movebg({width: 160/*滑块的大小*/, extra: 40/*额外反弹的距离*/, speed: 300/*滑块移动的速度*/, rebound_speed: 400/*滑块反弹的速度*/});
                                    })

                                        $("#CheckAll").bind("click", function () {
                                            $("input[name='ids[]']").prop("checked", this.checked);
                                        });

                                        $("#remind").click(function () {
                                            if (confirm('确定批量通过所选商品?')) {
                                                var checks = $("input[name='ids[]']:checked");
                                                if (checks.length == 0) {
                                                    alert('未选中任何项！');
                                                    return false;
                                                }
                                                //将获取的值存入数组
                                                var checkData = new Array();
                                                    checks.each(function () {
                                                    checkData.push($(this).val());
                                                });
                                                    
                                                    $.post("<?php echo MyUrl('admin/Goods/statusUpdate'); ?> ",
                                                        {id: checkData.toString(),value:1},
                                                        function (result) {
                                                            
                                                            if (result.code === 0) {
                                                                
                                                                window.location.reload();
                                                            }
                                                            else{
                                                                alert(result);
                                                            }
                                                        });
                                            }
                                      
                                        });
 
</script>